<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
<head>
    <meta charset="UTF-8">
    <title th:text="${title}">Title</title>
</head>
<body>
<div th:replace="~{fragments/header :: header}"></div>
<table border="1">
    <thead>
        <tr>
            <td>ID</td>
            <td>Age</td>
            <td>Name</td>
        </tr>
    </thead>
    <tbody>
        <tr th:if="${userList.size() eq 0}">
            没有用户信息
        </tr>
        <tr th:each="user : ${userList}">
            <td th:text="${user.id}"></td>
            <td th:text="${user.age}"></td>
            <td th:text="${user.name}"></td>
        </tr>
    </tbody>
</table>
<div th:replace="~{fragments/footer :: footer}"></div>

</body>
</html>